local EventListener = class("EventListener")

function EventListener:ctor(name, func)
	self._name = name
    self._func = func
end

function EventListener:GetName()
    return self._name
end

function EventListener:OnWork(event)
    self._func(event)
end

return EventListener

